package com.twu.biblioteca.movie;

import java.util.HashMap;
import java.util.LinkedHashMap;

public class MovieManager {
    private static HashMap<Movie, Integer> map = new LinkedHashMap<Movie, Integer>();

    static {
        map.put(new Movie("Sholay", 1975, "Ramesh Sippy"), 1);
        map.put(new Movie("Happy", 2013, "Mike", 7), 1);
        map.put(new Movie("Dream girls", 2006, "Bill Condon", 6), 1);
    }

    public HashMap<Movie, Integer> getMovies() {
        return map;
    }

    public String format() {
        return "Movie\tYear\tDirector\tRating";
    }
}
